<?php
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
	require_once 'include/inc.config.php';
	require_once WACT_ROOT.'common.inc.php';
	require_once WACT_ROOT.'controller/pathinfo.inc.php';

	@session_start();

	$Front = new PathInfoDispatchController();
	$Front->addChild('index',   new Handle(APP_CTRL_ROOT . 'pub/calendar/index.page.php|CalendarIndexPage'));
	$Front->addChild('edit',   new Handle(APP_CTRL_ROOT . 'pub/calendar/edit.page.php|CalendarEditPage'));
	$Front->addChild('delete',   new Handle(APP_CTRL_ROOT . 'pub/calendar/delete.page.php|CalendarDeletePage'));
	$Front->addChild('create',   new Handle(APP_CTRL_ROOT . 'pub/calendar/create.page.php|CalendarCreatePage'));
	$Front->addChild('submit',   new Handle(APP_CTRL_ROOT . 'pub/calendar/create.page.php|EventCreatePage')); // the same as create
       
    	$Front->addChild('view',   new Handle(APP_CTRL_ROOT . 'pub/calendar/view.page.php|CalendarViewPage'));
    	$Front->addChild('viewday',   new Handle(APP_CTRL_ROOT . 'pub/calendar/viewday.page.php|CalendarViewDayPage'));

	$Front->setDefaultChild('index');
	$Front->start();



?>